home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / System / JPartial Resources / JPartialResources.h < prev   
C/C++ Source or Header  |  1993-07-12  |  979b  |  30 lines

  1. /*
  2.  * JPartialResources.h
  3.  *
  4.  * Jamie's partial resource calls that work under any system.
  5.  * Version 1.0.1
  6.  * Copyright © 1992-93 by Jamie R. McCarthy.  All rights reserved.
  7.  * This code can be both distributed and used freely.
  8.  *
  9.  * Note that the routines can return the error codes -190 and -189
  10.  * (inputOutOfBounds and writingPastEnd), which are documented in
  11.  * IM VI 13, but are not in Apple's Errors.h file as of this writing.
  12.  * To ensure compatibility with future headers, which presumably
  13.  * will define those values, I'm leaving them out of this file.
  14.  * Please do remember to check ResError().
  15.  */
  16.  
  17.  
  18.  
  19. /******************************/
  20.  
  21. extern Boolean partialResourceCallsAvailable;
  22.  
  23. /******************************/
  24.  
  25.  
  26.  
  27. pascal void jReadPartialResource(Handle theResource, long offset, void *buffer, long count);
  28. pascal void jWritePartialResource(Handle theResource, long offset, void *buffer, long count);
  29. pascal void jSetResourceSize(Handle theResource, long size);
  30.